package org.aepscolombia.platform.models.entity;
// Generated Jan 21, 2014 11:35:29 AM by Hibernate Tools 3.2.1.GA


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * Users generated by hbm2java
 */
@Entity
@Table(name="users"
    , uniqueConstraints = @UniqueConstraint(columnNames="name_user_usr") 
)
public class Users  implements java.io.Serializable {


    private Integer idUsr;
    private String nameUserUsr;
    private String passwordUsr;
    private String saltUsr;
    private String codValidationUsr;
    private Integer status;
    private Date lastInUsr;
    private Integer createdBy;

    public Users() {
    }


    public Users(String nameUserUsr, String passwordUsr, String saltUsr, Date lastInUsr, String codValidationUsr, Integer status, Integer createdBy) {
        this.nameUserUsr = nameUserUsr;
        this.passwordUsr = passwordUsr;
        this.saltUsr     = saltUsr;
        this.lastInUsr   = lastInUsr;
        this.codValidationUsr = codValidationUsr;
        this.status = status;
        this.createdBy = createdBy;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_usr", unique=true, nullable=false)
    public Integer getIdUsr() {
        return this.idUsr;
    }
    
    public void setIdUsr(Integer idUsr) {
        this.idUsr = idUsr;
    }
    
    @Column(name="name_user_usr", unique=true, nullable=false, length=120)
    public String getNameUserUsr() {
        return this.nameUserUsr;
    }
    
    public void setNameUserUsr(String nameUserUsr) {
        this.nameUserUsr = nameUserUsr;
    }
    
    @Column(name="password_usr", nullable=false, length=120)
    public String getPasswordUsr() {
        return this.passwordUsr;
    }
    
    public void setPasswordUsr(String passwordUsr) {
        this.passwordUsr = passwordUsr;
    }
    
    @Column(name="salt_usr", length=120)
    public String getSaltUsr() {
        return this.saltUsr;
    }
    
    public void setSaltUsr(String saltUsr) {
        this.saltUsr = saltUsr;
    }
    
    @Column(name="cod_validation_usr", nullable=false, length=120)
    public String getCodValidationUsr() {
        return this.codValidationUsr;
    }
    
    public void setCodValidationUsr(String codValidationUsr) {
        this.codValidationUsr = codValidationUsr;
    }
    
    @Column(name="status", nullable=false)
    public Integer getStatus() {
        return this.status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    @Temporal(TemporalType.DATE)
    @Column(name="last_in_usr")
    public Date getLastInUsr() {
        return this.lastInUsr;
    }
    
    public void setLastInUsr(Date lastInUsr) {
        this.lastInUsr = lastInUsr;
    }
    
    @Column(name="created_by")
    public Integer getCreatedBy() {
        return this.createdBy;
    }
    
    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

}